var password_Boolean = false;
var varconfirm_Boolean = false;
$('.reg_password').blur(function(){
    if ((/^[a-z0-9_-]{8,16}$/).test($(".reg_password").val())){
        $('.password_hint').html("✔密码格式正确").css("color","green");
        password_Boolean = true;
    }else {
        $('.password_hint').html("×请输入8-16数字、字母、下划线字符").css("color","red");
        password_Boolean = false;
    }
});
$('.reg_confirm').blur(function(){
    if (($(".reg_password").val())==($(".reg_confirm").val())&&$(".reg_confirm").val()!==""){
        $('.confirm_hint').html("✔密码一致").css("color","green");
        varconfirm_Boolean = true;
    }else {
        $('.confirm_hint').html("×两次输入密码不一致！请重新输入").css("color","red");
        varconfirm_Boolean = false;
    }
});

$(".getcheckcode").click(function () {
    $(this).html("已发送短信")
});
$("#bok").click(function (e) {
    if(!password_Boolean||!varconfirm_Boolean){
        return false
    }
});